﻿<!DOCTYPE html>
<html class="login-bg">
<head>
<title><#:C('sitename')#>--商户登录</title>
<meta name="keywords" content="<#:C('keyword')#>"/>
<meta name="description" content="<#:C('content')#>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- bootstrap -->
<link href="<#$Theme['P']['root']#>/bootadmin/css/bootstrap/bootstrap.css" rel="stylesheet" />
<link href="<#$Theme['P']['root']#>/bootadmin/css/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
<link href="<#$Theme['P']['root']#>/bootadmin/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet" />
<!-- global styles -->
  <link rel="stylesheet" type="text/css" href="<#$Theme['P']['root']#>/bootadmin/css/layout.css" />
<link rel="stylesheet" type="text/css" href="<#$Theme['P']['root']#>/bootadmin/css/elements.css" />
<link rel="stylesheet" type="text/css" href="<#$Theme['P']['root']#>/bootadmin/css/icons.css" />
<!-- libraries -->
<link href="<#$Theme['P']['root']#>/bootadmin/css/lib/font-awesome.css" type="text/css" rel="stylesheet" />
<!-- this page specific styles -->
<link rel="stylesheet" href="<#$Theme['P']['root']#>/bootadmin/css/compiled/signin.css" type="text/css" media="screen" />
<!--[if lt IE 9]>
  <script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.js"></script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
    <div class="row-fluid login-wrapper">
        <a href="http://www.mbmkt.com/">
        <!-- 系统logo设置 -->
            <img class="logo" src="<#$Theme['P']['img']#>/wifilogo-mini.png" />
        </a>
        <div class="span4 box">
            <div class="content-wrap">
                <h6>商户登录</h6>
                <div class="alert " style="display: none;">
					  <span id="alertmsg"></span>
				</div>
                <input class="span12" type="text" name="txt_user" id="txt_user" placeholder="登录帐号" />
                <input class="span12" type="password" name="password" id="password" placeholder="密码" />
                <a class="btn-glow primary login" href="javascript:void(0);" id="btn_log">登录</a> <span style="width:30px;height:30px;display:inline-block;"></span>
                <a class="btn-glow success login" href="javascript:;" id="btn_reg">注册</a>
            </div>
        </div>
        <div class="control-group">
            <div class="main_input_box"> Copyright（c）2015-2018  AII Rights Reserved</br><a href="<#:C('siteurl')#>" target="_blank"><#:C('shortsiteurl')#></a></div>    
            <div class="main_input_box"> 
                <a href="http://www.miitbeian.gov.cn/">京ICP备14017729号</a>    
            </div>         
            <div class="main_input_box"> 
                    <h5>服务热线：<#:C('linktel')#> &nbsp;&nbsp; </h5>
            </div>         
        </div>
        <div class="span4 no-account">

        </div>
    </div>
    <div style="display: none">
      
    </div>
	<!-- scripts -->
<script src="<#$Theme['P']['js']#>/jquery.js"></script>
<script src="<#$Theme['P']['root']#>/bootadmin/js/bootstrap.min.js"></script>
<script src="<#$Theme['P']['root']#>/bootadmin/js/theme.js"></script>
<script src="<#$Theme['P']['root']#>/bootadmin/js/common.js"></script>
<!-- pre load bg imgs -->
<script type="text/javascript">

	document.onkeydown=function(event){
	    e = event ? event :(window.event ? window.event : null);
	    if(e.keyCode==13){
    	    //执行的方法
    	  	$('#btn_log').click();
	    }
	}

    $(function () {
    	$('#btn_reg').bind('click',function(){
			location.href='<#:U('index/index/reg')#>';
		});
        // bg switcher
      
        $('#btn_log').bind('click',function(){
			var u=$('#txt_user').val();
			var p=$('#password').val();
			if (u == "") {
				AlertTips( "请输入用户名",  2000);
			    return false;
			}
			if (p == "") {
				AlertTips( "请输入密码",2000);
			    return false;
			}
			$.ajax({
				url: '<#:U('index/user/dologin')#>',
			    type: "post",
				data:{
					'user':u,
					'password':p,
					'__hash__':$('input[name="__hash__"]').val()
				},
				dataType:'json',
				error:function(){
					AlertTips("服务器忙，请稍候再试",2000);
					},
				success:function(data){
						
					if(data.error==0){
						location.href=data.url;
						
					}else{
						AlertTips(data.msg, 2000);
					}
				}
			});
		});
    });
</script>
<script language="javascript">
    var isshow = false;
    $(function () {
        $("#showqq").click(function () {
            if (!isshow) {
                isshow = true;
                $(".showbox").css("margin-right", "-3px");
                $(".menubox").show('slow');
            } else {
                isshow = false;
                $(".showbox").css("margin-right", "0px");
                $(".menubox").hide('slow');
            }
        });
    });   
</script>
</body>
</html>
<meta property="qc:admins" content="160505360764557603636" />
